package com.moter.one.wyydemo1.controller;

import com.moter.one.wyydemo1.entity.SongInfo;
import com.moter.one.wyydemo1.service.SongInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//根据id更新整个歌曲的信息
public class UpdateSonginfo {
     @Autowired
    SongInfoService songInfoService;
     @RequestMapping("/UpdateSongInfo")
    public void UpdateSong(@RequestBody SongInfo songInfo){
          songInfoService.UpdateSongInfo(songInfo);
     }
}
